# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-send
pkgver=2.201
pkgrel=4
pkgdesc="simply sending email"
arch=('any')
url="https://search.cpan.org/dist/Email-Send"
license=('GPL' 'PerlArtistic')
depends=('perl-email-address>=1.80' 'perl-email-simple>=1.92' 'perl-return-value>=1.28'
	 'perl-module-pluggable')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/R/RJ/RJBS/Email-Send-$pkgver.tar.gz)
sha256sums=('4bbec933558d7cc9b8152bad86dd313de277a21a89b4ea83d84e61587e95dbc6')

build() {
  cd  "$srcdir"/Email-Send-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Email-Send-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
